package com.atguigu.userservice.service;

import com.atguigu.userservice.entity.RepUser;
import com.atguigu.userservice.entity.vo.UserRequestVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhuangLiJiao
 * @since 2021-10-15
 */
public interface RepUserService extends IService<RepUser> {

    //5.判断手机号是否已经注册
    boolean mobileExit(String mobileExitVo);

    //1.普通用户/商家用户注册
    void register(UserRequestVo.RegisterVo registerVo);

    //2.登录
    String login(UserRequestVo.LoginVo loginVo);

    //3.修改密码
    Boolean modifyPassword(UserRequestVo.ModifyPasswordVo modifyPasswordVo);

    //53.修改用户信息
    boolean modify(UserRequestVo.ModifyRepUserVo modifyRepUserVo);

    //获取全部社区
    ArrayList<String> getAllCommunities();
}
